|
Header: |
Quickdraw.h |
|
Carbon status: |
Unsupported |
Initializes QuickDraw.
void InitGraf (
void *globalPtr
);
Parameter descriptions
-
globalPtr
-
A pointer to the global variable thePort, which from C can be passed as &thePort.
-
DISCUSSION
Use the InitGraf function before initializing any other Toolbox managers, such as the Menu Manager and Window Manager. The InitGraf function initializes the global variables listed below. The InitGraf function also initializes Color QuickDraw on computers with Color QuickDraw capabilities.
- The global variable thePort is of type GrafPtr and has an initial setting of NULL.
- The global variable white is of type Pattern and has an initial setting of an all-white pattern.
- The global variable black is of type Pattern and has an initial setting of an all-black pattern.
- The global variable gray is of type Pattern and has an initial setting of 50% gray pattern.
- The global variable ltGray is of type Pattern and has an initial setting of 25% gray pattern.
- The global variable dkGray is of type Pattern and has an initial setting of 75% gray pattern.
- The global variable arrow is of type Cursor and has an initial setting of the standard arrow cursor. (To initialize the cursor, call the InitCursor function.)
- The global variable screenBits is of type BitMap and has an initial setting of the entire main screen.
- The global variable randSeed is of type LongInt and has an initial setting of 1.
The InitGraf function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.
AVAILABILITY
Not supported in Carbon. Not available in Carbon.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)